#if !defined(_H_PUBLIC)
#define _H_PUBLIC

#ifdef _UNICODE
#define  Safestrcpy wcscpy_s
#define  strcpy_s wcsncpy_s
#define  Safesprintf swprintf_s
#define  Safestrcat wcscat_s
#define  strlen wcslen
#define  Safestrcmp wcscmp
#define  Safestrstr wcsstr
#define Safefopen _wfopen
#else
#define  Safestrcpy strcpy_s
#define  Safestrncpy strncpy_s
#define  Safesprintf  sprintf_s
#define  Safestrcat strcat_s
#define  strlen strlen
#define  Safestrcmp strcmp
#define  Safestrstr strstr
#define  Safefopen fopen
#endif


bool __stdcall WriteCfgFile(void* pBuf,int nLen,char* szFileName,char* pPath=NULL);
bool __stdcall ReadCfgFile(void* pBuf,int nLen,char* szFileName,char* pPath=NULL);
BOOL __stdcall CreateDir(char* sFileName);
BOOL __stdcall CheckFileName(CString strName,CString& strErrMsg);


#endif